#include <game/flow/EntryExitDefinition.h>

ARELLO_GAME_NAMESPACE_DECL_START
namespace flow {
	
EntryExitDefinition::EntryExitDefinition()
	: progress(0)
{
}

EntryExitDefinition::~EntryExitDefinition()
{
}

bool EntryExitDefinition::on_attribute(xml::Provider * prov, const std::string & name, const std::string & value)
{
	if (name == "Name")
	{
		this->name = value.c_str();
		return true;
	}
	if (name == "Entry")
	{
		this->entry = value.c_str();
		return true;
	}

	return false;
}

} // namespace flow
ARELLO_GAME_NAMESPACE_DECL_END